package com.mockapi.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 响应模板实体
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("response_template")
public class ResponseTemplate {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 模板名称
     */
    @TableField("name")
    private String name;

    /**
     * 响应类型
     */
    @TableField("content_type")
    private String contentType;

    /**
     * FreeMarker模板内容
     */
    @TableField("template_content")
    private String templateContent;

    @TableField("headers")
    private String headers;

    /**
     * 模板描述
     */
    @TableField("description")
    private String description;

    /**
     * 创建时间
     */
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    /**
     * 更新时间
     */
    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;
} 